﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using VisualAgile.Model;

namespace VisualAgile.Demo
{
    public class FakeFeatureData
    {
        public static List<Feature> CreateTestFeatures()
        {
            List<Feature> features = new List<Feature>() {                
                DemoFeature1(),
                DemoFeature2(),
                DemoFeature3(),
                DemoFeature4(),
            };

            for (int i = 0; i < 10; i++)
            {
                Feature sampleFeature = new Feature()
                {
                   FeatureID = Guid.NewGuid(),
                   ReleaseID = "2EBDBC36-3585-47b3-8709-BE3184956938",
                   Name = "New Feature",
                   Target = DateTime.Now,
                   FullSize = true,                   
                   CreateTime = DateTime.Now                   
                };                         
                
                //features.Add(sampleFeature);
            }


            return features;
        }
        
        public static Feature DemoFeature()
        {                        
            Feature demo = new Feature()
            {
                FeatureID = new Guid("29DC7A46-52B5-4941-AAE2-F48592847E42"),
                ReleaseID = "29DC7A46-52B5-4941-AAE2-F48592847E42",
                Name = "New Feature",
                Target = DateTime.Now,
                FullSize = true,
                CreateTime = DateTime.Now
            };                

            return demo;
        }

        public static Feature DemoFeature1()
        {
            Feature demo = new Feature()
            {
                FeatureID = new Guid("62BD47C3-37DD-4e1f-8D24-D152FE9346B7"),
                ReleaseID = "3DFC646E-D49B-4c8c-84F0-B1FAFC105E47",
                Name = "Make sample data go from server to device",
                Target = DateTime.Now.AddDays(9),
                Color = "#A4CBF7",
                FullSize = true,
                CreateTime = DateTime.Now
            };

            return demo;
        }

        public static Feature DemoFeature2()
        {
            Feature demo = new Feature()
            {
                FeatureID = new Guid("82FA987B-981C-4448-82FC-D83EF0DB9D25"),
                ReleaseID = "3DFC646E-D49B-4c8c-84F0-B1FAFC105E47",
                Name = "Minimal working version",
                Target = DateTime.Now.AddDays(9),
                Color = "#ADB1E7",
                FullSize = true,
                CreateTime = DateTime.Now
            };

            return demo;
        }

        public static Feature DemoFeature3()
        {
            Feature demo = new Feature()
            {
                FeatureID = new Guid("2A5E53CA-53D7-46ec-A710-24768F70103C"),
                ReleaseID = "3DFC646E-D49B-4c8c-84F0-B1FAFC105E47",
                Name = "Plug in the real weather data",
                Target = DateTime.Now.AddDays(9),                
                FullSize = true,
                CreateTime = DateTime.Now
            };

            return demo;
        }

        public static Feature DemoFeature4()
        {
            Feature demo = new Feature()
            {
                FeatureID = new Guid("7E49005D-0127-4270-A05C-328223944A24"),
                ReleaseID = "1A8ACB7C-CF3C-4977-81A1-8CCFBFD352FA",
                Name = "Advertisements support",
                Target = DateTime.Now.AddDays(16),
                FullSize = true,
                Color = "#FBF39B",
                CreateTime = DateTime.Now
            };

            return demo;
        }

        public static Feature DefaultFeature()
        {
            Feature Default = new Feature()
            {
                FeatureID = new Guid("BE4B0656-8685-439e-B4EA-66D5C9BA7508"),
                ReleaseID = "BE4B0656-8685-439e-B4EA-66D5C9BA7508",
                Name = "New Feature",
                Target = DateTime.Now,
                FullSize = true,
                CreateTime = DateTime.Now
            };                

            return Default;
        }      
    }
}
